﻿<%if not in_sdcms then response.write("template load fail"):response.end() end if%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="Keywords" content="{sdcms[seokey]}" />
<meta name="Description" content="{sdcms[seodesc]}" />
<title>{sdcms[webname]} - powered by sdcms</title>
<link href="{webroot}lib/css/base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/public.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user_base.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/default/css/user.css" rel="stylesheet" type="text/css" />
<script>var webroot="{webroot}";</script>
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/js/base.js"></script>
<script src="{webroot}lib/js/mobile.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}theme/default/js/sdcms.js"></script>
<script>$(function(){$("#user_menu_01").addClass("hover");})</script>
</head>

<body>
    {sdcms:include("../sdcms_head.asp")}
    
    <div id="position">您所在的位置：<a href="{webroot}">首页</a> > <a href="./">会员中心</a></div>
    <div class="w980 mt10 mc">
        {sdcms:include("sdcms_menu.asp")}
        <div class="center">
            <div class="b">
            {dim userdata:userdata=sdcms.userinfo}
                {sdcms:rs field="amount,point,overdate,logintimes" table="sd_user" where="id=[userdata(0)]"}
                <div class="userinfo p10">
                    <div class="left_info">
                        <p class="face"><a href="avatar.asp"><img src="{webroot}{sdcms[upfile]}/avatar/{userdata(12)}/big.jpg?id={sdcms.getrnd(5)}" width="120" height="120" title="点击修改头像" /></a></p>
                        <div class="percent"><span>{userdata(7)}%</span><div class="l"><img src="{webroot}theme/default/images/bg_percent_dot.gif" width="{userdata(7)}%" height="9" /></div></div>
                        <div class="c9">{if userdata(7)<100}<a href="base.asp">现在去完善资料</a>{/if}</div>
                        <p class="pt5">推广链接：</p>
                        <p class="pt10">我的身份：</p>
                    </div>
                    <div class="right_info">
                        <p>欢迎您，{userdata(1)}<br />已登录：<span>{$rs[logintimes]}</span>次</p>
                        <div class="ub">
                            <div>可用余额：<span>{sdcms.getnum($rs[amount])}</span> 元　可用积分：<span>{$rs[point]}</span> 　享受折扣：<span>{sdcms.getpcent(userdata(11),"")}</span></div>
                            <div><input type="button" value="充值" class="bnt_yellow" onclick="location.href='pay.asp'" />　<input type="button" value="积分兑换" class="bnt_blue" onclick="location.href='exchange.asp'" /></div>
                        </div>
                        <div class="invite pt5"><input type="text" value="{weburl}{webroot}user/reg.asp?invite={userdata(0)}" /></div>
                        <p class="pt8">{if userdata(10)=""}未分组{else}{userdata(10)}{/if}　{if userdata(8)=1}<span>VIP会员</span> ({if userdata(9)=0}已过期{else}到期时间为：<span>{sdcms.numtodate($rs[overdate])}</span>{/if}){/if}　<a href="upgrade.asp">{if userdata(8)=0}<img src="{webroot}theme/default/images/open_user.gif" width="81" height="21" />{else}<img src="{webroot}theme/default/images/upgrade_user.gif" width="81" height="21" />{/if}</a></p>
                    </div>
                </div>
                {/sdcms:rs}
            </div>
            <div class="b mt10 c">
                <div class="subject">我的消息</div>
                <div class="p10">
                <table id="tablelist">
                    <tr>
                        <th>标题</th>
                        <th width="170">日期</th>
                    </tr>
                    {sdcms:rs top="6" field="id,title,createdate" table="sd_user_message" where="userid=[userdata(0)] and isread=0" order="id desc"}
                    {rs:eof}
                    <tr>
                        <td colspan="2" class="item" align="center">暂时没有消息</td>
                    </tr>
                    {/rs:eof}
                    <tr id="message_{$rs[id]}">
                        <td class="item"><a href="message.asp?act=show&id={$rs[id]}">{sdcms.cutstr($rs[title],30,1)}</a></td>
                        <td align="center">{$rs[createdate]}</td>
                    </tr>
                    {/sdcms:rs}
                </table>
                </div>
            </div>
        </div>
        
        <div class="right">
            <div class="b">
                <div class="subject">可能感兴趣的话题</div>
                <ul class="toplist">
                    {sdcms:rs top="10" field="id,title,style,createdate,isurl,url,classid" table="sd_content" where="islock=1 and isnice=1" order="rnd"}
                    {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li><a href="{$rs[link]}" title="{$rs[title]}"{if $rs[isurl]=1} target="_blank"{/if} {$rs[style]}>{sdcms.cutstr($rs[title],24,1)}</a></li>
                    {/sdcms:rs} 
                </ul>
            </div>
            
            <div class="b mt10">
                <div class="subject">我的收藏夹</div>
                <ul class="toplist">
                {sdcms:rs top="6" field="sd_user_favorite.id,title,contentid,sd_user_favorite.createdate" table="sd_user_favorite" join="left join sd_content on sd_user_favorite.contentid=sd_content.id" where="sd_user_favorite.userid=[userdata(0)]" order="sd_user_favorite.id desc"}
                    {rs:eof}<li>没有资料</li>{/rs:eof}
                    <li><a href="../show.asp?id={$rs[contentid]}" title="{$rs[title]}" target="_blank">{sdcms.cutstr($rs[title],24,1)}</a></li>
                    {/sdcms:rs}
                </ul>
            </div>
        </div>
    </div>
    {sdcms:include("../sdcms_foot.asp")}